$(function(){
	
	function adjustForSafeArea() {
	  const bottomInset = window.visualViewport ? window.visualViewport.offsetHeight - window.innerHeight : 0;
	  document.body.style.paddingBottom = `${bottomInset}px`;
	}
	 
	window.addEventListener('resize', adjustForSafeArea);
	adjustForSafeArea(); // 初始调用一次
	
});